import React from 'react'
const home = React.lazy(() => import('../pages/home'))
const signUp = React.lazy(() => import('../pages/signUp'))
const city = React.lazy(() => import('../pages/city'))
const layout = React.lazy(() => import('../pages/layout'))
const detail = React.lazy(() => import('../pages/detail'))
const my = React.lazy(() => import('../pages/my'))
const history = React.lazy(() => import('../pages/history'))


const routes = [{
	path: '/',
	element: layout,
	children: [{
		path: '/',
		element: home
	},{
		path: '/my',
		element: my
	}]
},{
	path: '/signup',
	element: signUp
},{
	path: '/posts/:id',
	element: detail
}, {
	path: '/city',
	element: city
}, {
	path: '/user/history',
	element: history
}]


export default routes